<template>
    <div>
        <h1>管理报名表</h1>
        <el-alert
            title="已经成功创建报名表"
            type="success"
            :closable="false">
        </el-alert>
        <p>请保存此页面连接，以便以后获取报名统计信息</p>
         <!-- <el-alert
            title="请保存此页面连接，以便以后获取报名统计信息"
            type="warning">
        </el-alert> -->
        <h2>下面是报名连接</h2>
        <a :href="admin.fillUrl" target="_blank">{{admin.fillUrl}}</a>
        <!-- <a href="">下载汇总表格</a> -->
        
        <h2>下载汇总表格</h2>

        <el-button type="success" @click="downTable">下载汇总表格</el-button>

    </div>

</template>

<script>
export default {
    data() {
        return {
            admin: {
                "tableId": "",
                "downUrl": "",
                "fillUrl": "",
            }
        }
    },
    mounted() {
        // this.getTableData();
        this.admin = {
            tableId: this.$route.params.tableId,
            downUrl: "/table/" + this.$route.params.tableId + "/admin/down",
            fillUrl: this.customConfig.serverUrl + "/table/" + this.$route.params.tableId
        }
        // console.log(this.$route.params.tableId);
    },
    methods: {
        getTableData() {

        },
        downTable() {
            window.location.href = this.admin.downUrl;
        }
    }
}
</script>


